home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Technology Seed / Mac Tech Seed May '97.toast / Firewire 1.0 DDK / Source / FWIM / MakeFile < prev   
Encoding:
Makefile  |  1997-03-28  |  6.6 KB  |  235 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for FWIM sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW22>     3/27/97    GG        Bumped version to 1.0 GM.
  13. #      <FW21>     3/19/97    GG        Bumped version to 1.0b3.
  14. #      <FW20>     3/12/97    GG        Bumped version to 1.0b2.
  15. #      <FW19>     2/19/97    GG        Bumped version to 1.0a3.
  16. #      <FW18>     2/11/97    GG        Bumped copyright to 1997.
  17. #      <FW17>     2/11/97    GG        Bumped version to 1.0a2.
  18. #      <FW16>      2/4/97    GG        
  19. #      <FW15>      2/4/97    GG        Bumped version to 1.0d24.
  20. #      <FW14>     1/28/97    GG        Bumped version to 1.0d23.
  21. #      <FW13>     1/21/97    GG        Bumped version to 1.0d22.
  22. #      <FW12>      1/2/97    GG        Bumped Version to 1.0d21.
  23. #      <FW11>     12/6/96    GG        Bumped version to 1.0d19.
  24. #      <FW10>    11/27/96    ES        Removed links to DevNLib.
  25. #       <FW9>    11/26/96    ES        Removed -main FWIMInterface option from links.
  26. #       <FW8>    11/14/96    GG        Bumped version to 1.0d18.
  27. #       <FW7>    10/31/96    ES        Bumped version to 1.0d17.
  28. #       <FW6>    10/16/96    ES        Bumped version to 1.0d16.
  29. #       <FW5>     10/2/96    ES        Bumped version to 1.0d15.
  30. #       <FW4>     9/12/96    ES        Bumped version to 1.0d14.
  31. #       <FW3>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  32. #                                    ETO #20 and forward.
  33. #       <FW2>      8/7/96    ES        Filled in contains and written by fields.
  34. #       <FW1>      8/7/96    ES        first checked in
  35. #
  36. #
  37.  
  38. ################################################################################
  39. #
  40. # Define some directories
  41. #
  42.  
  43. FWIMRootDir                    =    :
  44.  
  45. FWSampleDir                    =    {FWIMRootDir}::
  46.  
  47. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  48. FWIMInterfacesDir            =    {FWIMRootDir}Interfaces:
  49.  
  50. SysLibrariesDir                =    {FWSampleDir}Libraries:
  51. FWIMLibrariesDir            =    {FWIMRootDir}Libraries:
  52.  
  53. LynxFWIMSourceDir            =    {FWIMRootDir}LynxFWIM:
  54.  
  55. BuildResultsDir                =    {FWSampleDir}BuildResults:
  56. ObjectsDir                    =    {BuildResultsDir}Objects:
  57. ExtensionsDir                =    {BuildResultsDir}Extensions:
  58.  
  59. ################################################################################
  60. #
  61. # Define version info
  62. #
  63.  
  64. FWVersion                    =    1
  65. FWRevision                    =    0
  66. FWBuildStage                =    Final
  67. FWBuildNumber                =    2
  68. FWShortVersionString        =    '"1.0 GM"'
  69. FWLongVersionString            =    '"1.0 GM, © 1995-97 Apple Computer, Inc."'
  70.  
  71.  
  72. ################################################################################
  73. #
  74. # Define stuff for 68K compilation
  75. #
  76.  
  77. C68KOptions                    =    -d ccompile                                    ∂
  78.                                 -b                                            ∂
  79.                                 -r                                            ∂
  80.                                 -i "{SysInterfaces}"                        ∂
  81.                                 -i "{CIncludes}"                            ∂
  82.                                 -mc68020
  83.  
  84. Asm68K                        =    Asm
  85.  
  86. C68K                        =    SC
  87.  
  88. Link68K                        =    Link
  89.  
  90.  
  91. ################################################################################
  92. #
  93. # Define stuff for PowerPC compilation
  94. #
  95.  
  96. MrCOptions                    =    -opt speed                                    ∂
  97.                                 -w 2,7,35                                    ∂
  98.                                 -d TRUE=1                                    ∂
  99.                                 -d FALSE=0                                    ∂
  100.                                 -i "{SysInterfacesDir}"                        ∂
  101.                                 -i "{FWIMInterfacesDir}"                    ∂
  102.                                 -i "{CIncludes}"
  103.  
  104. CPPCOptions                    =    {MrCOptions}
  105.  
  106. AsmPPC                        =    PPCAsm
  107.  
  108. AsmPPCOptions                =    -dialect PowerPC                            ∂
  109.                                 -o {Targ}
  110.  
  111. CPPC                        =    MrC
  112.  
  113. LinkPPC                        =    PPCLink
  114.  
  115.  
  116. ################################################################################
  117. #
  118. # Define stuff for rez
  119. #
  120.  
  121. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  122.                                 -d FWRevision={FWRevision}                    ∂
  123.                                 -d FWBuildStage={FWBuildStage}                ∂
  124.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  125.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  126.                                 -d FWLongVersionString={FWLongVersionString}
  127.  
  128.  
  129. ################################################################################
  130. #
  131. # Lynx FWIM
  132. #
  133.  
  134. "{ObjectsDir}LynxFWIM.c.o"    ƒ                                                ∂
  135.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  136.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  137.     {CPPC}                                                                    ∂
  138.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  139.         -i "{LynxFWIMSourceDir}"                                            ∂
  140.         {CPPCOptions}                                                        ∂
  141.         -o {Targ}
  142.  
  143. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  144.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  145.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  146.     {LinkPPC}                                                                ∂
  147.         -t 'ndrv'                                                            ∂
  148.         -c 'fw  '                                                            ∂
  149.         -xm sharedlibrary                                                    ∂
  150.         -w                                                                     ∂
  151.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  152.         "{ObjectsDir}LynxFWIM.c.o"                                            ∂
  153.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  154.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  155.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  156.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  157.         "{SysLibrariesDir}PCILib"                                            ∂
  158.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  159.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  160.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  161.         -librename StdCLib.xcoff=StdCLib                                    ∂
  162.          -o {Targ}
  163.  
  164. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  165.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  166.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  167.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  168.                             "{FWIMRootDir}MakeFile"
  169.     Rez                                                                        ∂
  170.         {RezOptions}                                                        ∂
  171.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  172.         -a                                                                    ∂
  173.         -o {Targ}
  174.  
  175.  
  176. LynxFWIM    ƒ                                                                ∂
  177.                         "{ExtensionsDir}LynxFWIM"
  178.  
  179.  
  180. ################################################################################
  181. #
  182. # Lynx Lite FWIM
  183. #
  184.  
  185. "{ObjectsDir}LynxLiteFWIM.c.o"    ƒ                                            ∂
  186.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  187.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  188.     {CPPC}                                                                    ∂
  189.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  190.         -d LynxLiteFWIM                                                        ∂
  191.         -i "{LynxFWIMSourceDir}"                                            ∂
  192.         {CPPCOptions}                                                        ∂
  193.         -o {Targ}
  194.  
  195. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  196.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  197.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  198.     {LinkPPC}                                                                ∂
  199.         -t 'ndrv'                                                            ∂
  200.         -c 'fw  '                                                            ∂
  201.         -xm sharedlibrary                                                    ∂
  202.         -w                                                                     ∂
  203.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  204.         "{ObjectsDir}LynxLiteFWIM.c.o"                                        ∂
  205.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  206.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  207.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  208.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  209.         "{SysLibrariesDir}PCILib"                                            ∂
  210.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  211.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  212.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  213.         -librename StdCLib.xcoff=StdCLib                                    ∂
  214.          -o {Targ}
  215.  
  216. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  217.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  218.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  219.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  220.                             "{FWIMRootDir}MakeFile"
  221.     Rez                                                                        ∂
  222.         {RezOptions}                                                        ∂
  223.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  224.         -a                                                                    ∂
  225.         -o {Targ}
  226.  
  227.  
  228. LynxLiteFWIM    ƒ                                                            ∂
  229.                         "{ExtensionsDir}LynxLiteFWIM"
  230.  
  231.  
  232. FWIM    ƒ                                                                    ∂
  233.                         LynxFWIM                                            ∂
  234.                         LynxLiteFWIM
  235.